package sphere;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class SphereNaive {

	/**
	 * @param args
	 */
	private static double volume(double r){
		return 4.0 / 3.0 * Math.PI * Math.pow(r,3);
	}
	
	private static double surfaceArea(double r ){
		return 4.0 * Math.PI * Math.pow(r,2);
	}
	public static void main(String[] args) {
		BufferedReader console = new BufferedReader(new InputStreamReader(
				System.in));
		double radius=0;
		System.out.print("Enter the radius: ");
		try {
			radius = Double.parseDouble(console.readLine());
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("Radius = " + radius);
		double volume = 4.0 / 3.0 * Math.PI * radius * radius * radius;
		System.out.println("Volume = " + volume);
		double area = 4.0 * Math.PI * radius * radius;
		System.out.println("Surface area = " + area);
	}

	
}
